import request from '@/utils/request'

export default {
    //查询酒店列表
    getHotelsByCountry(country) {
        return request({
            url: `/inner/hotel/getHotelsByCountry/${country}`,
            method: 'get'
        })
    },

    //带条件的分页查询
    getHotelPageVo(current, limit, hotelQuery) {
        return request({
            url: `/inner/hotel/getHotelPageVo/${current}/${limit}`,
            method: 'post',
            data: hotelQuery //转化json传递
        })
    },
    //根据删除讲师
    delHotelById(id) {
        return request({
            url: `/inner/hotel/delHotelById/${id}`,
            method: 'delete',
        })
    },
    //上传照片
       //根据删除讲师
       fileUploads(id,files) {
        return request({
            url: `/travel/fileUploads/${id}`,
            method: 'post',
            data : files
        })
    },
    //新增讲师
    addHotel(hotel){
        return request({
            url: `/inner/hotel/addHotel/`,
            method: 'post',
            data: hotel   //转化json传递
        })
    },
    //根据id查询数据，做回显
    getHotelById(id){
        return request({
            url: `/inner/hotel/getHotelById/${id}`,
            method: 'get'
          })
    },
    //执行修改操作
    updateHotel(hotel){
        return request({
            url: `/inner/hotel/updateHotel`,
            method: 'post',
            data: hotel   //转化json传递
        })
    },

       //统计
       getSeventHotel(searchHotelVo){
        return request({
            url: `/inner/hotel/getSeventHotel`,
            method: 'post',
            data: searchHotelVo   //转化json传递
        })
    },


          //统计
          exportExcel(){
            return request({
                url: `/inner/hotel/exportExcel`,
                method: 'get',
                // data: hotelQuery   //转化json传递
            })
        },
}